home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_ResizeaButtonDynamicallyByUsingAutoSize_142601_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-10-28  |  1KB  |  44 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Resize a Button Dynamically by using AutoSize</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Uses AutoSize to dynamically resize a button to the length of its text.</Description>
  8.       <Shortcut>butAutoSize</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.         <References>
  12.             <Reference>
  13.                 <Assembly>System.Drawing.dll</Assembly>
  14.                 <Url />
  15.             </Reference>
  16.             <Reference>
  17.                 <Assembly>System.Windows.Forms.dll</Assembly>
  18.                 <Url />
  19.             </Reference>
  20.         </References>
  21.         <Imports>
  22.             <Import>
  23.                 <Namespace>System</Namespace>
  24.             </Import>
  25.             <Import>
  26.                 <Namespace>System.Drawing</Namespace>
  27.             </Import>
  28.             <Import>
  29.                 <Namespace>Microsoft.VisualBasic</Namespace>
  30.             </Import>
  31.         </Imports>
  32.         <Declarations>
  33.         <Object>
  34.           <ID>buttonName</ID>
  35.           <Type>Button</Type>
  36.           <ToolTip>Replace with a button on your form.</ToolTip>
  37.           <Default>Button1</Default>
  38.         </Object>
  39.       </Declarations>
  40.       <Code Language="VB" Kind="method body"><![CDATA[$buttonName$.AutoSize = True
  41. ]]></Code>
  42.     </Snippet>
  43.   </CodeSnippet>
  44. </CodeSnippets>